# To change this template, choose Tools | Templates
# and open the template in the editor.
from maya.api import *

__author__="muchmeck"
__date__ ="$2011-jan-04 13:15:22$"

class SpamCmd(MPxCommand):
    def __init__(self):
        MPxCommand.__init__(self)
    def doIt(self, arglist):
        print "Spam & Eggs"
        return MStatus()
    @staticmethod
    def newSyntax():
        syntax = MSyntax()
        return syntax
    @staticmethod
    def creator():
        return SpamCmd()


def initializePlugin(obj):
    plugin = MfnPlugin(obj)

    stat= plugin.registerCommand("spam", SpamCmd.creator)
    if not stat:
        stat.perror("registerCommand failed")

    return stat

def uninitializePlugin(obj):
    plugin = MFnPlugin(obj)
    stat = plugin.deregisterCommand("spam")
    if not stat:
        stat.perror("deregisterCommand failed")

    return stat

"""
if __name__ == "__main__":
    print "Hello World"
"""